﻿using System.Collections.Generic;
using VideoSeller.Business.Data;

namespace VideoSeller.Web.Models
{
	public class OnlineViewModel : BaseViewModel
	{
		public IEnumerable<Category> Categories { get; set; }

		public IEnumerable<Country> Countries { get; set; }

		public List<CultureItemViewModel> Cultures { get; set; }

		public List<int> MembersCountList { get; set; }

		public int MeetingPriceForMember { get; set; }
        public int MaxPriceMyVSM { get; set; }
      
        public int MaxPriceConferenceVSM { get; set; }
        public int MaxPriceMeetingVSM { get; set; }
        public int MinViewCounterForSetPrice { get; set; }
        public int CurViewCounterForSetPrice { get; set; }
        public decimal BasicPublishPrice { get; set; }
        public decimal manyUser { get; set; }
        public Dictionary<string, float> QualityStringCosts { get; set; }
        public Dictionary<int, float> MaxViewerCntMult { get; set; }
        public Dictionary<int, float> MaxTimeMult { get; set; }
        public Dictionary<string, float> ContentTypeMult { get; set; }
        public bool SetPriceEnabled
        {
            get {
                bool ret = false;
                try
                {
                    ret = CurViewCounterForSetPrice >= MinViewCounterForSetPrice;
                }
                catch { }
                return ret;
            }
        }
		public OnlineViewModel()
		{
            
			Cultures = new List<CultureItemViewModel>();
		}
	}
}